<h3>Danh sách nhà sản xuất</h3>
<table id='tableOrder' style='width:100%'>
<col width='10%'/>
<col width='30%'/>
<col width='40%'/>
<col width='10%'/>
<col width='10%'/>
<tr>
	<th>ID</th>
	<th>Tên</th>
	<th>Mô tả</th>
	<th>Thay đổi vị trí</th>
	<th></th>
</tr>
<?php if(!empty($rs)):?>
<?php
$i = 0;
foreach($rs as $item):
$i++;
?>
<tr>
	<td><?php echo $i?></td>
	<td><?php echo h($item['Brand']['name'])?></td>	
	<td><?php echo nl2br($item['Brand']['description'])?></td>
	<td>
	<?php echo $this->Html->link('Lên',array('action'=>'changeorder','controller'=>'brands',$item['Brand']['id'],'up',$item['Brand']['orderby']))?>
	<?php echo $this->Html->link('Xuống',array('action'=>'changeorder','controller'=>'brands',$item['Brand']['id'],'down',$item['Brand']['orderby']))?>
	</td>
	<td>
	<?php echo $this->Html->link('Sửa',array('action'=>'edit','controller'=>'brands',h($item['Brand']['id'])))?>
	<?php echo $this->Html->link('Xóa',array('action'=>'delete','controller'=>'brands',h($item['Brand']['id'])),null,'Bạn có chắc là muốn xóa?')?>
	</td>
</tr>
<?php endforeach; ?>
<?php else:?>
<tr><td colspan='4'>Không tìm thấy dữ liệu</td></tr>
<?php endif;?>
</table>
<?php echo $this->element('paging')?>